using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public class _User
{
	public _User()
	{
    	// Default Constructor
	}
	
	public _User(string userName)
	{
        // Custom Constructor used to populate data from the database.
        WebServiceApplication.WebService webService = new WebServiceApplication.WebService();
        _User data = webService.getSearchedUser(userName);
        if (data != null)
        {
            this.firstName = data.firstName;
            this.lastName = data.lastName;
            this.email = data.email;
            this.address = data.address;
            this.newsLetter = data.newsLetter;
            this.membershipDate = data.membershipDate;
            this.userName = data.userName;
            this.memberstatus = data.memberstatus;
            this.studentStatus = data.studentStatus;
            this.seniorStatus = data.seniorStatus;
            this.age = data.age;
        }
    }
	
	// Variables
    public string firstName { get; set; }
    public string lastName { get; set; }
    public string email { get; set; }
    public _Address address { get; set; }
    public bool newsLetter { get; set; }
    public DateTime membershipDate { get; set; }
    public string userName { get; set; }
    public bool memberstatus { get; set; }
    public bool studentStatus { get; set; }
    public bool seniorStatus { get; set; }
    public int age { get; set; }
}